import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
  ak: 'sUdSmbsNs3SD23Gk4dYZXIusmRtYC3w7'
})
Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'index',
    //   component: index,
    //   meta:{
    //     name: 'index'
    //   }
    // },
    {
      path: '/subsystem1',
      redirect: '/subsystem/callAdmissibility',
      component: () =>
      import('../components/baidu.vue'),
      name: '表格',
      meta: {
        title: '表格',
        requiresAuth: true
      }
    }
  ]
})
